<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('tag',TagController::class);
    $router->resource('factory',FactoryController::class);
    $router->resource('factory2',Factory2Controller::class);
    $router->resource('factory3',Factory3Controller::class);
    $router->resource('city',CityController::class);
    $router->resource('area',AreaController::class);
    $router->resource('area2',Area2Controller::class);
    $router->resource('area3',Area3Controller::class);
    $router->resource('rent_price',RentPriceController::class);//租金区间
    $router->resource('rent_price2',RentPrice2Controller::class);//租金区间
    $router->resource('rent_price3',RentPrice3Controller::class);//租金区间
    $router->resource('factory_rent_type',FactoryRentTypeController::class);//商业性质
    $router->resource('factory_rent_type2',FactoryRentType2Controller::class);//商业性质
    $router->resource('factory_rent_type3',FactoryRentType3Controller::class);//商业性质
    $router->resource('factory_rent_nature',FactoryRentNatureController::class);//
    $router->resource('factory_rent_nature2',FactoryRentNature2Controller::class);//
    $router->resource('factory_rent_nature3',FactoryRentNature3Controller::class);//
    Route::get('api/town',[\App\Http\Controllers\CityController::class,'town']);
    $router->resource('zhuangxiu',ZhuangxiuController::class);
    $router->resource('celue',CelueController::class);
    $router->resource('business',BusinessController::class);
    $router->resource('business_type',BusinessTypeController::class);
    $router->resource('setting',SettingController::class);
    $router->resource('user',UserController::class);
    $router->resource('qiuzu',QiuzuController::class);
    $router->resource('qiumai',QiumaiController::class);
});
